package com.hutao.medical.mapper.borrow;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import com.hutao.medical.pojo.borrow.BorrowRecord;
import com.hutao.medical.pojo.dto.MedBorrowDto;
import com.hutao.medical.query.BorrowQuery;

public interface BorrowRecordMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(BorrowRecord record);

    int insertSelective(BorrowRecord record);

    BorrowRecord selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(BorrowRecord record);

    int updateByPrimaryKey(BorrowRecord record);
    
    
    BorrowRecord selectByUniqueKey(@Param("uniqueKey")String uniqueKey);

    List<Map<String,Object>> selectApplyBorrowByKeyWords(BorrowQuery borrowQuery);
    
    int selectApplyBorrowCountByKeyWords(BorrowQuery borrowQuery);
    
    
    int selectBorrowMedByLoginNameAndDaysCount(MedBorrowDto medBorrowDto);
    
    
    List<Map<String,Object>> selectBorrowMedByLoginNameAndDays(MedBorrowDto medBorrowDto);

	List<Map<String, Object>> exportBorrowApproveToExcel(BorrowQuery borrowQuery);

	List<Map<String, Object>> exportBorrowStaitcsToExcel(BorrowQuery borrowQuery);
}